package cn.edu.sdjzu.xg.eagle.inter;



import cn.edu.sdjzu.xg.eagle.entity.School;
import cn.edu.sdjzu.xg.eagle.exception.BaseException;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.Collection;

/**
 * @author tg.si@188.com
 * @project xg22
 * @date 2024/3/26
 */
// 修改接口 SchoolDaoInterface
public interface SchoolDaoInterface {
    static void getInstance() {

    }

    School find(Integer id) throws SQLException, BaseException;
    Collection<School> findAll() throws SQLException, BaseException;
    boolean update(Connection connection, School school) throws SQLException;
    boolean add(Connection connection, School school) throws SQLException;
    boolean delete(Integer id) throws SQLException;
    boolean delete(School school) throws SQLException;
}

